package com.isias.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.isias.model.El.ElPaper;
import com.isias.model.El.ElRepo;
import com.isias.model.El.ElUserPaperAnswer;
import com.isias.model.dto.ElUserPaperAnswerDto;
import com.isias.model.dto.ElUserPaperDto;
import com.isias.model.dto.WorkDetailDto;
import com.isias.model.vo.ElPaperQueryVo;
import com.isias.model.vo.ElRepoQueryVo;
import com.isias.model.vo.WorkDetailVo;

import java.util.List;

public interface ElUserPaperAnswerService extends IService<ElUserPaperAnswer> {

    String CreatPaperToUser(String userId, String paperId);

    List<ElUserPaperAnswerDto> InitQu(String elUserPaperId);

    ElUserPaperAnswerDto GetOneQu(String elUserPaperId,String quId);

    Boolean UpdateList(List<ElUserPaperAnswer> list,String paperId,String elUserPaperId);

    IPage<ElUserPaperDto> Mywork(Page<ElUserPaperDto> pageparam,String id, ElPaperQueryVo elPaperQueryVo);

    IPage<WorkDetailDto> workDetail(Page<WorkDetailDto> pageparam, String paperId, WorkDetailVo workDetailVo);

    void UpdatePoint(String elUserPaperId);

    Boolean updateGetPoint(String elUserPaperId, int point);
}
